package com.android.aishangauction.model.member;

import com.chad.library.adapter.base.entity.AbstractExpandableItem;
import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.List;

/**
 * Created by lnest-php on 2017/9/27.
 */

public class CustomerQuestData {

    /**
     * cat : {"id":"33","catname":"常见问题","catdir":"faq","parentdir":"","parentid":"0","moduleid":"2","module":"article","arrparentid":"0","arrchildid":"33,41,39,42,37,38","type":"0","title":"","keywords":"","description":"","listorder":"50","ishtml":"0","ismenu":"0","hits":"0","thumb":"","child":"1","url":"/content/index/33","template_list":"list_help","template_show":"show_help","pagesize":"10","readgroup":"0","listtype":"0","lang":"1","urlruleid":"0","issystem":"0"}
     * catlist : [{"id":"37","catname":"注册登录","list":[{"id":"46","title":"如何注册？","content":"A、打开***<br />\r\nB、点底部【我的&nbsp;】，点击右上角【注册】<br />\r\nC、填写手机号码、密码<br />\r\nD、注册成功后，请使用当下注册的方式进行登陆<br />"},{"id":"47","title":"注册时手机收不到短信怎么办？","content":"A、确认短信是否被手机软件拦截或过滤<br />\r\nB、确认手机是否正常接收短信（信号、欠费、停机等）<br />\r\nC、短信收发过程可能会有延时，请耐心守候<br />\r\nD、仍未收到，请联系客服为您服务<br />"},{"id":"51","title":"忘记登录密码怎么办？","content":"可在登陆页面点击【忘记密码】，<span>通过手机短信验证<\/span>进行找回。"}]},{"id":"38","catname":"趣买问题","list":[{"id":"52","title":"名词解释","content":"网服费：指用户参与趣买，每次使用趣豆/赠豆支付平台网络服务费<br />\r\n初始价：趣买商品的最低起价<br />\r\n加价幅度：指用户每次参与趣买加价金额<br />\r\n返积分倍率：按趣买消耗的网络服务费，依照【】比例赠送大市场购物积分<br />\r\n趣买倒计时：指每次按照规定的时间【】秒，如无人更高价趣买，则价高者得<br />\r\n积分：指可以用于大市场购物时抵用，积分有时效限制，默认周期为【】年<br />\r\n<br />"},{"id":"48","title":"趣买什么流程？","content":"步骤一：免费注册会员<br />\r\n步骤二：购买商家券获得趣豆<br />\r\n步骤三：选择心仪商品出价，等待倒计时<br />\r\n步骤四：趣买成功，以最终成交价购买商品<br />\r\n<span>步骤五：趣买失败，返还一定比例的积分，到大市场换购商品<\/span><br />"},{"id":"54","title":"趣买采用什么规则？","content":"(1) 趣豆来源：到购券区选适合的商家优惠券，优惠券可以到指定商家使用，购买并赠送趣豆。<br />\r\n(2) 商品趣买初始价以起始价为准，每出一次出价会消耗一定数量的趣豆（网络服务费），同时商品价格以加价幅度值递增。<br />\r\n(3) 在初始倒计时内即可出价，初始倒计时后进入趣买倒计时，当您出价后，该件商品的计时器将被自动重置到趣买倒计时，以便其他用户进行出价趣买。如果没有其他用户对该件商品出价，计时器归零时，您便成功获得得了该商品购买权。<br />\r\n(4) 若趣买成功，请在3天内以成交价购买商品，超过3天未下单，视为放弃，不返积分。<br />\r\n(5) 若趣买失败，可返还所消耗趣豆倍率的积分（赠豆除外），积分可以在大市场换购商品。<br />\r\n(6) 平台严禁违规操作，最终解释权归****所有。<br />\r\n<br />"},{"id":"53","title":"如何获得趣豆？","content":"登录后，点击首页的\u201c购券\u201d来购买商家优惠券，购买商家优惠券后你可以得到相应的商家优惠券以及获赠一定数量的趣豆。"},{"id":"55","title":"一场趣买什么时候结束？","content":"当没有新的竞争者出价，<span>倒计时归器为0<\/span>，就代表该商品这场趣买结束了。"},{"id":"56","title":"趣买成功后应该怎么做？","content":"恭喜您成功争取到了该商品的购买机会资格。<br />\r\n您需要以成交价格，支付该商品，您可以点击\u201c趣买中\u201d\u2014\u2014\u201c待付款\u201d\u2014\u2014\u201c支付订单\u201d，然后填写您的收货信息，我们会在【】工作日内给您发货。请您务必在3天内完成支付，否则视为自愿放弃。如果您有什么疑问可以联系我们的客服人员。<br />\r\n<br />"},{"id":"57","title":"趣买会产生什么消耗？","content":"趣买过程中，每次使用趣豆/赠豆支付平台网络服务费后，您可以获得相应一次的趣买出价资格。<br />\r\n一、趣买成功，所消耗趣豆不赠送大市场购物积分。<br />\r\n二、趣买失败，趣买失败后，【】平台将跟据您消耗的趣豆，以赠券倍率赠送在大市场购物积分。<br />\r\n三、赠豆规则，无论趣买成功或者失败，均不能获得任何赠送或返还。<br />\r\n<br />"},{"id":"58","title":"什么时候为休息时段？","content":"为保证用户基本作息时间，【】平台每日凌晨2：00-7：00点为休息时段，凌晨2：00前已进入最后【】秒趣买倒计时的商品可以继续趣买，2点前未进入最后【】秒倒计时的商品将自动延迟到早上7：00.<br />\r\n<div>\r\n\t<br />\r\n<\/div>"}]},{"id":"39","catname":"晒单奖励","list":[]},{"id":"41","catname":"发货说明","list":[{"id":"63","title":"订单支付后什么时候能发货？","content":"(1)虚拟商品下一个自然日发货，部分商品支持实时发奖。如您在发货前未正确填写收货信息，则发货延期。<br />\r\n(2)实物商品将在下一个工作日内下单，但具体发货时间和物流单号需要依商家而定（一般在7个工作日内发货）。<br />\r\n(3)预售商品发货日需根据实际采购情况而定(一般在90天内发货)<br />\r\n(4)恶意注册用户将取消趣买资格<br />"},{"id":"62","title":"长期未收到趣买商品怎么回事呢？","content":"(1)确保收货地址、邮编、电话、Email、地址等各项信息的准确性；<br />\r\n(2)配送过程中请确保您的联系方式畅顺无阻，如果联络您的时间超过7天未得到回复，默认您已经放弃此商品<br />"},{"id":"61","title":"商品可以退换吗？","content":"非质量问题，不在三包范围内，不给予退换货。请尽量亲自签收并当面拆箱验货，如果发现运输途中造成了商品的损坏，请不要签收，可以拒签退回。"}]},{"id":"42","catname":"大市场问题","list":[{"id":"64","title":"什么是大市场？","content":"大市场是购物大市场，里面有相当多的物品供您使用金额+积分购买，在大市场里面用户可以自由的选择使用金额+积分的组合购任何商品。"},{"id":"65","title":"大市场购买商品的积分从哪里获得？","content":"<p>\r\n\t获得积分的路径有两种\r\n<\/p>\r\n<p>\r\n\t1、通过积分签到，每天坚持签到获取相应的积分；\r\n<\/p>\r\n<p>\r\n\t2、趣买返回积分，通过参加趣买来获取积分，趣买返回积分只有趣买未成功才能返积分。\r\n<\/p>"},{"id":"66","title":"积分或抵用券有效期","content":"积分或抵用券有效期<br />\r\n积分或抵用券时效期：用户虽然获得了积分或大市场购物抵用券但是未使用，【】平台将以【】天为周期，定期对过期的积分或抵用券进行作废处理。而判断未使用积分或抵用券失效的起始时间是您未再购券区购买商家券，或者未进行趣买活动开始计算，至到【】天依然未有相应购买或者趣买行为。<br />\r\n<div>\r\n\t<br />\r\n<\/div>"}]}]
     * business_tel : 400-966-0902
     * worktime : 工作日9:00-18:00
     * contact_qq : 200530020
     * flag : true
     * code : 0
     * msg : 操作成功
     * data : null
     * time : 1506502188
     */

    private CatBean cat;
    private String business_tel;
    private String worktime;
    private String contact_qq;
    private boolean flag;
    private int code;
    private String msg;
    private Object data;
    private int time;
    private List<CatlistBean> catlist;
    private List<ListBean> list;

    public List<ListBean> getList() {
        return list;
    }

    public void setList(List<ListBean> list) {
        this.list = list;
    }

    public CatBean getCat() {
        return cat;
    }

    public void setCat(CatBean cat) {
        this.cat = cat;
    }

    public String getBusiness_tel() {
        return business_tel;
    }

    public void setBusiness_tel(String business_tel) {
        this.business_tel = business_tel;
    }

    public String getWorktime() {
        return worktime;
    }

    public void setWorktime(String worktime) {
        this.worktime = worktime;
    }

    public String getContact_qq() {
        return contact_qq;
    }

    public void setContact_qq(String contact_qq) {
        this.contact_qq = contact_qq;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public List<CatlistBean> getCatlist() {
        return catlist;
    }

    public void setCatlist(List<CatlistBean> catlist) {
        this.catlist = catlist;
    }

    public static class CatBean {
        /**
         * id : 33
         * catname : 常见问题
         * catdir : faq
         * parentdir :
         * parentid : 0
         * moduleid : 2
         * module : article
         * arrparentid : 0
         * arrchildid : 33,41,39,42,37,38
         * type : 0
         * title :
         * keywords :
         * description :
         * listorder : 50
         * ishtml : 0
         * ismenu : 0
         * hits : 0
         * thumb :
         * child : 1
         * url : /content/index/33
         * template_list : list_help
         * template_show : show_help
         * pagesize : 10
         * readgroup : 0
         * listtype : 0
         * lang : 1
         * urlruleid : 0
         * issystem : 0
         */

        private String id;
        private String catname;
        private String catdir;
        private String parentdir;
        private String parentid;
        private String moduleid;
        private String module;
        private String arrparentid;
        private String arrchildid;
        private String type;
        private String title;
        private String keywords;
        private String description;
        private String listorder;
        private String ishtml;
        private String ismenu;
        private String hits;
        private String thumb;
        private String child;
        private String url;
        private String template_list;
        private String template_show;
        private String pagesize;
        private String readgroup;
        private String listtype;
        private String lang;
        private String urlruleid;
        private String issystem;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getCatname() {
            return catname;
        }

        public void setCatname(String catname) {
            this.catname = catname;
        }

        public String getCatdir() {
            return catdir;
        }

        public void setCatdir(String catdir) {
            this.catdir = catdir;
        }

        public String getParentdir() {
            return parentdir;
        }

        public void setParentdir(String parentdir) {
            this.parentdir = parentdir;
        }

        public String getParentid() {
            return parentid;
        }

        public void setParentid(String parentid) {
            this.parentid = parentid;
        }

        public String getModuleid() {
            return moduleid;
        }

        public void setModuleid(String moduleid) {
            this.moduleid = moduleid;
        }

        public String getModule() {
            return module;
        }

        public void setModule(String module) {
            this.module = module;
        }

        public String getArrparentid() {
            return arrparentid;
        }

        public void setArrparentid(String arrparentid) {
            this.arrparentid = arrparentid;
        }

        public String getArrchildid() {
            return arrchildid;
        }

        public void setArrchildid(String arrchildid) {
            this.arrchildid = arrchildid;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getKeywords() {
            return keywords;
        }

        public void setKeywords(String keywords) {
            this.keywords = keywords;
        }

        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        public String getListorder() {
            return listorder;
        }

        public void setListorder(String listorder) {
            this.listorder = listorder;
        }

        public String getIshtml() {
            return ishtml;
        }

        public void setIshtml(String ishtml) {
            this.ishtml = ishtml;
        }

        public String getIsmenu() {
            return ismenu;
        }

        public void setIsmenu(String ismenu) {
            this.ismenu = ismenu;
        }

        public String getHits() {
            return hits;
        }

        public void setHits(String hits) {
            this.hits = hits;
        }

        public String getThumb() {
            return thumb;
        }

        public void setThumb(String thumb) {
            this.thumb = thumb;
        }

        public String getChild() {
            return child;
        }

        public void setChild(String child) {
            this.child = child;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getTemplate_list() {
            return template_list;
        }

        public void setTemplate_list(String template_list) {
            this.template_list = template_list;
        }

        public String getTemplate_show() {
            return template_show;
        }

        public void setTemplate_show(String template_show) {
            this.template_show = template_show;
        }

        public String getPagesize() {
            return pagesize;
        }

        public void setPagesize(String pagesize) {
            this.pagesize = pagesize;
        }

        public String getReadgroup() {
            return readgroup;
        }

        public void setReadgroup(String readgroup) {
            this.readgroup = readgroup;
        }

        public String getListtype() {
            return listtype;
        }

        public void setListtype(String listtype) {
            this.listtype = listtype;
        }

        public String getLang() {
            return lang;
        }

        public void setLang(String lang) {
            this.lang = lang;
        }

        public String getUrlruleid() {
            return urlruleid;
        }

        public void setUrlruleid(String urlruleid) {
            this.urlruleid = urlruleid;
        }

        public String getIssystem() {
            return issystem;
        }

        public void setIssystem(String issystem) {
            this.issystem = issystem;
        }
    }
   public static class  ListBean
   {
       private String id;
       private String catid;
       private String title;
       private String content;
       private String createtime;

       public String getId() {
           return id;
       }

       public void setId(String id) {
           this.id = id;
       }

       public String getCatid() {
           return catid;
       }

       public void setCatid(String catid) {
           this.catid = catid;
       }

       public String getTitle() {
           return title;
       }

       public void setTitle(String title) {
           this.title = title;
       }

       public String getContent() {
           return content;
       }

       public void setContent(String content) {
           this.content = content;
       }

       public String getCreatetime() {
           return createtime;
       }

       public void setCreatetime(String createtime) {
           this.createtime = createtime;
       }
   }
    public static class CatlistBean extends AbstractExpandableItem<CustomerQuestData.CatlistBean.ListBean> implements MultiItemEntity {
        /**
         * id : 37
         * catname : 注册登录
         * list : [{"id":"46","title":"如何注册？","content":"A、打开***<br />\r\nB、点底部【我的&nbsp;】，点击右上角【注册】<br />\r\nC、填写手机号码、密码<br />\r\nD、注册成功后，请使用当下注册的方式进行登陆<br />"},{"id":"47","title":"注册时手机收不到短信怎么办？","content":"A、确认短信是否被手机软件拦截或过滤<br />\r\nB、确认手机是否正常接收短信（信号、欠费、停机等）<br />\r\nC、短信收发过程可能会有延时，请耐心守候<br />\r\nD、仍未收到，请联系客服为您服务<br />"},{"id":"51","title":"忘记登录密码怎么办？","content":"可在登陆页面点击【忘记密码】，<span>通过手机短信验证<\/span>进行找回。"}]
         */

        public static final int TYPE_LEVEL_0 = 1;
        public static final int TYPE_LEVEL_1 = 2;
        private String id;
        private String catname;
        private List<ListBean> list;

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getCatname() {
            return catname;
        }

        public void setCatname(String catname) {
            this.catname = catname;
        }

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        @Override
        public int getItemType() {
            return 0;
        }

        @Override
        public int getLevel() {
            return 1;
        }

        public static class ListBean implements MultiItemEntity {
            /**
             * id : 46
             * title : 如何注册？
             * content : A、打开***<br />
             B、点底部【我的&nbsp;】，点击右上角【注册】<br />
             C、填写手机号码、密码<br />
             D、注册成功后，请使用当下注册的方式进行登陆<br />
             */

            private String id;
            private String title;
            private String content;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getContent() {
                return content;
            }

            public void setContent(String content) {
                this.content = content;
            }

            @Override
            public int getItemType() {
                return 1;
            }
        }
    }
}
